#include "GResource.h"
#include "genifa.h"
#include "gtchar.h"

/* Language Discrimanation String */
extern GTCHAR pLanguageStrF0Test00[];
extern GTCHAR pLanguageStrF0Test01[];
extern GTCHAR pLanguageStrF0Test02[];
extern GTCHAR pLanguageStrF0Test03[];
extern GTCHAR pLanguageStrF0Test04[];
extern GTCHAR pLanguageStrF0Test05[];
extern GTCHAR pLanguageStrF0Test06[];
extern GTCHAR pLanguageStrF0Test07[];
extern GTCHAR pLanguageStrF0Test08[];
extern GTCHAR pLanguageStrF0Test09[];
extern GTCHAR pLanguageStrF0Test10[];
extern GTCHAR pLanguageStrF0Test11[];
extern GTCHAR pLanguageStrF0Test12[];
extern GTCHAR pLanguageStrF0Test13[];
extern GTCHAR pLanguageStrF0Test14[];
extern GTCHAR pLanguageStrF0Test15[];
extern GTCHAR pLanguageStrF0Test16[];
extern GTCHAR pLanguageStrF0Test17[];
extern GTCHAR pLanguageStrF0Test18[];


/* StringList Extern */
extern GTCHAR* pStringsF0Test00[];
extern GTCHAR* pStringsF0Test01[];
extern GTCHAR* pStringsF0Test02[];
extern GTCHAR* pStringsF0Test03[];
extern GTCHAR* pStringsF0Test04[];
extern GTCHAR* pStringsF0Test05[];
extern GTCHAR* pStringsF0Test06[];
extern GTCHAR* pStringsF0Test07[];
extern GTCHAR* pStringsF0Test08[];
extern GTCHAR* pStringsF0Test09[];
extern GTCHAR* pStringsF0Test10[];
extern GTCHAR* pStringsF0Test11[];
extern GTCHAR* pStringsF0Test12[];
extern GTCHAR* pStringsF0Test13[];
extern GTCHAR* pStringsF0Test14[];
extern GTCHAR* pStringsF0Test15[];
extern GTCHAR* pStringsF0Test16[];
extern GTCHAR* pStringsF0Test17[];
extern GTCHAR* pStringsF0Test18[];


/* FontList Extern */
extern GSimpleFont pFontsF0Test00[];
extern GSimpleFont pFontsF0Test01[];
extern GSimpleFont pFontsF0Test02[];
extern GSimpleFont pFontsF0Test03[];
extern GSimpleFont pFontsF0Test04[];
extern GSimpleFont pFontsF0Test05[];
extern GSimpleFont pFontsF0Test06[];
extern GSimpleFont pFontsF0Test07[];
extern GSimpleFont pFontsF0Test08[];
extern GSimpleFont pFontsF0Test09[];
extern GSimpleFont pFontsF0Test10[];
extern GSimpleFont pFontsF0Test11[];
extern GSimpleFont pFontsF0Test12[];
extern GSimpleFont pFontsF0Test13[];
extern GSimpleFont pFontsF0Test14[];
extern GSimpleFont pFontsF0Test15[];
extern GSimpleFont pFontsF0Test16[];
extern GSimpleFont pFontsF0Test17[];
extern GSimpleFont pFontsF0Test18[];



#ifndef NO_WINDOWS
/* Locale */
unsigned char	ucMaxLocale = ID_LOC_LOCALE18 + 1;

#endif//NO_WINDOWS
/* Language Discrimanation String */
static GTCHAR *pLanguageStr[]={
	pLanguageStrF0Test00,
	pLanguageStrF0Test01,
	pLanguageStrF0Test02,
	pLanguageStrF0Test03,
	pLanguageStrF0Test04,
	pLanguageStrF0Test05,
	pLanguageStrF0Test06,
	pLanguageStrF0Test07,
	pLanguageStrF0Test08,
	pLanguageStrF0Test09,
	pLanguageStrF0Test10,
	pLanguageStrF0Test11,
	pLanguageStrF0Test12,
	pLanguageStrF0Test13,
	pLanguageStrF0Test14,
	pLanguageStrF0Test15,
	pLanguageStrF0Test16,
	pLanguageStrF0Test17,
	pLanguageStrF0Test18,
};


/* String */
static char **pStrings;
static unsigned long ulMaxStringResource = 0;
static GTCHAR **pStringsList[]={
	pStringsF0Test00,
	pStringsF0Test01,
	pStringsF0Test02,
	pStringsF0Test03,
	pStringsF0Test04,
	pStringsF0Test05,
	pStringsF0Test06,
	pStringsF0Test07,
	pStringsF0Test08,
	pStringsF0Test09,
	pStringsF0Test10,
	pStringsF0Test11,
	pStringsF0Test12,
	pStringsF0Test13,
	pStringsF0Test14,
	pStringsF0Test15,
	pStringsF0Test16,
	pStringsF0Test17,
	pStringsF0Test18,
};


/* Font */
static GSimpleFont *pFonts;
static unsigned long ulMaxFontResource = ID_FONT00000;
static GSimpleFont *pFontsList[]={
	pFontsF0Test00,
	pFontsF0Test01,
	pFontsF0Test02,
	pFontsF0Test03,
	pFontsF0Test04,
	pFontsF0Test05,
	pFontsF0Test06,
	pFontsF0Test07,
	pFontsF0Test08,
	pFontsF0Test09,
	pFontsF0Test10,
	pFontsF0Test11,
	pFontsF0Test12,
	pFontsF0Test13,
	pFontsF0Test14,
	pFontsF0Test15,
	pFontsF0Test16,
	pFontsF0Test17,
	pFontsF0Test18,
};


/* Palette */
static const GColor pcData_ID_PALETTE00006[]={
	RGB16(0,0,0),
	RGB16(0,0,128),
	RGB16(0,128,0),
	RGB16(0,128,128),
	RGB16(128,0,0),
	RGB16(128,0,128),
	RGB16(128,128,0),
	RGB16(192,192,192),
	RGB16(128,128,128),
	RGB16(0,0,255),
	RGB16(0,255,0),
	RGB16(0,255,255),
	RGB16(255,0,0),
	RGB16(255,0,255),
	RGB16(255,255,0),
	RGB16(255,255,255),
	RGB16(192,220,192),
	RGB16(166,202,240),
	RGB16(255,251,240),
	RGB16(160,160,164),
	RGB16(32,192,192),
	RGB16(64,192,192),
	RGB16(96,192,192),
	RGB16(128,192,192),
	RGB16(192,32,192),
	RGB16(192,64,192),
	RGB16(192,96,192),
	RGB16(192,128,192),
	RGB16(192,192,32),
	RGB16(192,192,64),
	RGB16(192,192,96),
	RGB16(192,192,128),
	RGB16(44,0,0),
	RGB16(86,0,0),
	RGB16(135,0,0),
	RGB16(192,0,0),
	RGB16(0,44,0),
	RGB16(44,44,0),
	RGB16(86,44,0),
	RGB16(135,44,0),
	RGB16(192,44,0),
	RGB16(255,44,0),
	RGB16(0,86,0),
	RGB16(44,86,0),
	RGB16(86,86,0),
	RGB16(135,86,0),
	RGB16(192,86,0),
	RGB16(255,86,0),
	RGB16(0,135,0),
	RGB16(44,135,0),
	RGB16(86,135,0),
	RGB16(135,135,0),
	RGB16(192,135,0),
	RGB16(255,135,0),
	RGB16(0,192,0),
	RGB16(44,192,0),
	RGB16(86,192,0),
	RGB16(135,192,0),
	RGB16(192,192,0),
	RGB16(255,192,0),
	RGB16(44,255,0),
	RGB16(86,255,0),
	RGB16(135,255,0),
	RGB16(192,255,0),
	RGB16(0,0,44),
	RGB16(44,0,44),
	RGB16(86,0,44),
	RGB16(135,0,44),
	RGB16(192,0,44),
	RGB16(255,0,44),
	RGB16(0,44,44),
	RGB16(44,44,44),
	RGB16(86,44,44),
	RGB16(135,44,44),
	RGB16(192,44,44),
	RGB16(255,44,44),
	RGB16(0,86,44),
	RGB16(44,86,44),
	RGB16(86,86,44),
	RGB16(135,86,44),
	RGB16(192,86,44),
	RGB16(255,86,44),
	RGB16(0,135,44),
	RGB16(44,135,44),
	RGB16(86,135,44),
	RGB16(135,135,44),
	RGB16(192,135,44),
	RGB16(255,135,44),
	RGB16(0,192,44),
	RGB16(44,192,44),
	RGB16(86,192,44),
	RGB16(135,192,44),
	RGB16(192,192,44),
	RGB16(255,192,44),
	RGB16(0,255,44),
	RGB16(44,255,44),
	RGB16(86,255,44),
	RGB16(135,255,44),
	RGB16(192,255,44),
	RGB16(255,255,44),
	RGB16(0,0,86),
	RGB16(44,0,86),
	RGB16(86,0,86),
	RGB16(135,0,86),
	RGB16(192,0,86),
	RGB16(255,0,86),
	RGB16(0,44,86),
	RGB16(44,44,86),
	RGB16(86,44,86),
	RGB16(135,44,86),
	RGB16(192,44,86),
	RGB16(255,44,86),
	RGB16(0,86,86),
	RGB16(44,86,86),
	RGB16(86,86,86),
	RGB16(135,86,86),
	RGB16(192,86,86),
	RGB16(255,86,86),
	RGB16(0,135,86),
	RGB16(44,135,86),
	RGB16(86,135,86),
	RGB16(135,135,86),
	RGB16(192,135,86),
	RGB16(255,135,86),
	RGB16(0,192,86),
	RGB16(44,192,86),
	RGB16(86,192,86),
	RGB16(135,192,86),
	RGB16(192,192,86),
	RGB16(255,192,86),
	RGB16(0,255,86),
	RGB16(44,255,86),
	RGB16(86,255,86),
	RGB16(135,255,86),
	RGB16(192,255,86),
	RGB16(255,255,86),
	RGB16(0,0,135),
	RGB16(44,0,135),
	RGB16(86,0,135),
	RGB16(135,0,135),
	RGB16(192,0,135),
	RGB16(255,0,135),
	RGB16(0,44,135),
	RGB16(44,44,135),
	RGB16(86,44,135),
	RGB16(135,44,135),
	RGB16(192,44,135),
	RGB16(255,44,135),
	RGB16(0,86,135),
	RGB16(44,86,135),
	RGB16(86,86,135),
	RGB16(135,86,135),
	RGB16(192,86,135),
	RGB16(255,86,135),
	RGB16(0,135,135),
	RGB16(44,135,135),
	RGB16(86,135,135),
	RGB16(135,135,135),
	RGB16(192,135,135),
	RGB16(255,135,135),
	RGB16(0,192,135),
	RGB16(44,192,135),
	RGB16(86,192,135),
	RGB16(135,192,135),
	RGB16(192,192,135),
	RGB16(255,192,135),
	RGB16(0,255,135),
	RGB16(44,255,135),
	RGB16(86,255,135),
	RGB16(135,255,135),
	RGB16(192,255,135),
	RGB16(255,255,135),
	RGB16(0,0,192),
	RGB16(44,0,192),
	RGB16(86,0,192),
	RGB16(135,0,192),
	RGB16(192,0,192),
	RGB16(255,0,192),
	RGB16(0,44,192),
	RGB16(44,44,192),
	RGB16(86,44,192),
	RGB16(135,44,192),
	RGB16(192,44,192),
	RGB16(255,44,192),
	RGB16(0,86,192),
	RGB16(44,86,192),
	RGB16(86,86,192),
	RGB16(135,86,192),
	RGB16(192,86,192),
	RGB16(255,86,192),
	RGB16(0,135,192),
	RGB16(44,135,192),
	RGB16(86,135,192),
	RGB16(135,135,192),
	RGB16(192,135,192),
	RGB16(255,135,192),
	RGB16(0,192,192),
	RGB16(44,192,192),
	RGB16(86,192,192),
	RGB16(135,192,192),
	RGB16(255,192,192),
	RGB16(0,255,192),
	RGB16(44,255,192),
	RGB16(86,255,192),
	RGB16(135,255,192),
	RGB16(192,255,192),
	RGB16(255,255,192),
	RGB16(44,0,255),
	RGB16(86,0,255),
	RGB16(135,0,255),
	RGB16(192,0,255),
	RGB16(0,44,255),
	RGB16(44,44,255),
	RGB16(86,44,255),
	RGB16(135,44,255),
	RGB16(192,44,255),
	RGB16(255,44,255),
	RGB16(0,86,255),
	RGB16(44,86,255),
	RGB16(86,86,255),
	RGB16(135,86,255),
	RGB16(192,86,255),
	RGB16(255,86,255),
	RGB16(0,135,255),
	RGB16(44,135,255),
	RGB16(86,135,255),
	RGB16(135,135,255),
	RGB16(192,135,255),
	RGB16(255,135,255),
	RGB16(0,192,255),
	RGB16(44,192,255),
	RGB16(86,192,255),
	RGB16(135,192,255),
	RGB16(192,192,255),
	RGB16(255,192,255),
	RGB16(44,255,255),
	RGB16(86,255,255),
	RGB16(135,255,255),
	RGB16(192,255,255),
	RGB16(24,24,24),
	RGB16(37,37,37),
	RGB16(52,52,52),
	RGB16(68,68,68),
	RGB16(77,77,77),
	RGB16(95,95,95),
	RGB16(105,105,105),
	RGB16(114,114,114),
	RGB16(125,125,125),
	RGB16(146,146,146),
	RGB16(157,157,157),
	RGB16(168,168,168),
	RGB16(180,180,180),
	RGB16(204,204,204),
	RGB16(216,216,216),
	RGB16(229,229,229),
	RGB16(242,242,242),
};

static const GPaletteHeader GPHeader_ID_PALETTE00006={256,pcData_ID_PALETTE00006};

static const GPaletteHeader* pPalette[]={
	NULL,
	&GPHeader_ID_PALETTE00006,
};


/* Image */
static const GRFHeader GRFID_IMAGE00001={GRF_TYPE_DDBRLE,0,0,16,0,(unsigned char *)NULL};

static const GImage pImages[]={
	{NULL},
	{(GRFHeader*)&GRFID_IMAGE00001},
};


/* Border */
static const GBorder pBorders[]={
	{0,0,0,0,0},
	{1,RGB32(255,255,255),RGB32(128,128,128),RGB32(0,0,0),3},
	{1,RGB32(0,0,0),RGB32(255,255,255),RGB32(180,180,180),3},
};


/* FillPattern */
#ifdef NO_WINDOWS
const unsigned char cFillPatternsF0Test[38][8]={
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
	{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},
	{0xEE,0xDD,0xBB,0x77,0xEE,0xDD,0xBB,0x77},
	{0x77,0xBB,0xDD,0xEE,0x77,0xBB,0xDD,0xEE},
	{0x38,0x70,0xE0,0xC1,0x83,0x07,0x0E,0x1C},
	{0x1C,0x0E,0x07,0x83,0xC1,0xE0,0x70,0x38},
	{0x11,0x22,0x44,0x88,0x11,0x22,0x44,0x88},
	{0x88,0x44,0x22,0x11,0x88,0x44,0x22,0x11},
	{0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80},
	{0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01},
	{0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA},
	{0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00},
	{0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88},
	{0xFF,0x00,0x00,0x00,0xFF,0x00,0x00,0x00},
	{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},
	{0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
	{0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55},
	{0x55,0xFF,0x55,0xFF,0x55,0xFF,0x55,0xFF},
	{0xFF,0x88,0x88,0x88,0xFF,0x88,0x88,0x88},
	{0xFF,0xFF,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0},
	{0xFF,0x80,0x80,0x80,0x80,0x80,0x80,0x80},
	{0x81,0x42,0x24,0x18,0x18,0x24,0x42,0x81},
	{0xCC,0x00,0x33,0x00,0xCC,0x00,0x33,0x00},
	{0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44},
	{0xAA,0x00,0x55,0x00,0xAA,0x00,0x55,0x00},
	{0xAA,0x00,0xAA,0x00,0xAA,0x00,0xAA,0x00},
	{0x88,0x00,0x00,0x00,0x22,0x00,0x00,0x00},
	{0x88,0x00,0x00,0x00,0x88,0x00,0x00,0x00},
	{0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
	{0x08,0x14,0x22,0x41,0x80,0x00,0x00,0x00},
	{0xB1,0x30,0x03,0x1B,0xD8,0xC0,0x0C,0x8D},
	{0x80,0x10,0x02,0x20,0x01,0x08,0x40,0x04},
	{0xFF,0x01,0x01,0x01,0xFF,0x10,0x10,0x10},
	{0x08,0x1C,0x22,0xC1,0x80,0x01,0x02,0x04},
	{0xC3,0xC3,0xC3,0x3C,0x3C,0x3C,0x3C,0xC3},
	{0x00,0x08,0x14,0x2A,0x55,0x2A,0x14,0x08},
	{0xAA,0x00,0x80,0x00,0x88,0x00,0x80,0x00},
	{0x80,0x80,0x41,0x3E,0x08,0x08,0x14,0xE3},
};
#else//NO_WINDOWS
const unsigned char cFillPatterns[38][8]={
	{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
	{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},
	{0xEE,0xDD,0xBB,0x77,0xEE,0xDD,0xBB,0x77},
	{0x77,0xBB,0xDD,0xEE,0x77,0xBB,0xDD,0xEE},
	{0x38,0x70,0xE0,0xC1,0x83,0x07,0x0E,0x1C},
	{0x1C,0x0E,0x07,0x83,0xC1,0xE0,0x70,0x38},
	{0x11,0x22,0x44,0x88,0x11,0x22,0x44,0x88},
	{0x88,0x44,0x22,0x11,0x88,0x44,0x22,0x11},
	{0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80},
	{0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01},
	{0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA},
	{0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00},
	{0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88},
	{0xFF,0x00,0x00,0x00,0xFF,0x00,0x00,0x00},
	{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},
	{0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
	{0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55},
	{0x55,0xFF,0x55,0xFF,0x55,0xFF,0x55,0xFF},
	{0xFF,0x88,0x88,0x88,0xFF,0x88,0x88,0x88},
	{0xFF,0xFF,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0},
	{0xFF,0x80,0x80,0x80,0x80,0x80,0x80,0x80},
	{0x81,0x42,0x24,0x18,0x18,0x24,0x42,0x81},
	{0xCC,0x00,0x33,0x00,0xCC,0x00,0x33,0x00},
	{0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44},
	{0xAA,0x00,0x55,0x00,0xAA,0x00,0x55,0x00},
	{0xAA,0x00,0xAA,0x00,0xAA,0x00,0xAA,0x00},
	{0x88,0x00,0x00,0x00,0x22,0x00,0x00,0x00},
	{0x88,0x00,0x00,0x00,0x88,0x00,0x00,0x00},
	{0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
	{0x08,0x14,0x22,0x41,0x80,0x00,0x00,0x00},
	{0xB1,0x30,0x03,0x1B,0xD8,0xC0,0x0C,0x8D},
	{0x80,0x10,0x02,0x20,0x01,0x08,0x40,0x04},
	{0xFF,0x01,0x01,0x01,0xFF,0x10,0x10,0x10},
	{0x08,0x1C,0x22,0xC1,0x80,0x01,0x02,0x04},
	{0xC3,0xC3,0xC3,0x3C,0x3C,0x3C,0x3C,0xC3},
	{0x00,0x08,0x14,0x2A,0x55,0x2A,0x14,0x08},
	{0xAA,0x00,0x80,0x00,0x88,0x00,0x80,0x00},
	{0x80,0x80,0x41,0x3E,0x08,0x08,0x14,0xE3},
};
#endif//NO_WINDOWS


/* LinePattern */
#ifdef NO_WINDOWS
const unsigned char cLinePatternsF0Test[8][8]={
	{0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00},
	{0xFF,0xFF,0x00,0x00,0xFF,0xFF,0x00,0x00},
	{0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00},
	{0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0},
	{0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC},
	{0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA},
	{0xFF,0xAA,0xFF,0x00,0xFF,0xAA,0xFF,0x00},
	{0xFF,0xCC,0xAA,0x00,0xAA,0xCC,0xFF,0x00},
};
#else//NO_WINDOWS
const unsigned char cLinePatterns[8][8]={
	{0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00},
	{0xFF,0xFF,0x00,0x00,0xFF,0xFF,0x00,0x00},
	{0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00},
	{0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0},
	{0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC},
	{0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA},
	{0xFF,0xAA,0xFF,0x00,0xFF,0xAA,0xFF,0x00},
	{0xFF,0xCC,0xAA,0x00,0xAA,0xCC,0xFF,0x00},
};
#endif//NO_WINDOWS


/* HtmlBrowser */
static const GFileName pHtmls[]={
	{0x0000},
	{0x0000},
};

static GResource pResource =
{
	0,
	pStringsList,
	pFontsList,
	pPalette,
	pImages,
	pBorders,
#ifdef NO_WINDOWS
	&cFillPatternsF0Test[0][0],
	&cLinePatternsF0Test[0][0],
#else//NO_WINDOWS
	&cFillPatterns[0][0],
	&cLinePatterns[0][0],
#endif//NO_WINDOWS
	pHtmls,
	pLanguageStr,
};

#ifdef NO_WINDOWS
HGRESOURCE hResourceF0Test = &pResource;
#else//NO_WINDOWS
HGRESOURCE hResource = &pResource;
#endif//NO_WINDOWS
